<?php
require_once ("../dao/ProductDAO.php");
$action = $_POST['act'];

$result = false;
if($action == 'del') {
	if(isset($_POST['idre'])) {
		$id = $_POST['idre'];
		if(deleteProduct($id)) {
			$result = true;
		}
	}
}
echo json_encode($result);
?>